package com.example.springbootshiro.model;

import java.util.HashSet;
import java.util.Set;

public class Role
{
    private Integer rId;

    private String name;

    private Set<Permission> permissions = new HashSet<>();

    private Set<User> users = new HashSet<>();

    public Role()
    {
    }

    public Role(Integer rId, String name)
    {
        this.rId=rId;
        this.name=name;
    }

    public Integer getrId()
    {
        return rId;
    }

    public void setrId(Integer rId)
    {
        this.rId=rId;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name=name;
    }

    public Set<Permission> getPermissions()
    {
        return permissions;
    }

    public void setPermissions(Set<Permission> permissions)
    {
        this.permissions=permissions;
    }

    public Set<User> getUsers()
    {
        return users;
    }

    public void setUsers(Set<User> users)
    {
        this.users=users;
    }
}
